package com.cqc.common;

/**
 * @author cui
 */

public enum ResultCodeEnum {

    /**
     * 成功
     */
    SUCCESS(1000, "成功"),
    /**
     * 错误
     */
    ERROR(1001, "错误"),
    /**
     * 参数错误
     */
    PARAM_ERROR(1002, "参数错误"),
    /**
     * 空指针异常
     */
    NULL_POINT(1003, "空指针异常"),
    /**
     * 网络异常
     */
    HTTP_CLIENT_ERROR(1004, "网络异常"),
    ;


    /**
     * 响应状态码
     */
    private final Integer code;
    /**
     * 响应信息
     */
    private final String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }


    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
